.class Lcom/wmr/order/RefundActivity$1;
.super Landroid/os/Handler;
.source "RefundActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/wmr/order/RefundActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/wmr/order/RefundActivity;


# direct methods
.method constructor <init>(Lcom/wmr/order/RefundActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/wmr/order/RefundActivity$1;->this$0:Lcom/wmr/order/RefundActivity;

    .line 68
    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 14
    .param p1, "msg"    # Landroid/os/Message;

    .prologue
    const v13, 0x7f0701c5

    const/16 v12, 0x8

    const/4 v11, 0x0

    .line 70
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    .line 71
    iget v7, p1, Landroid/os/Message;->arg1:I

    sparse-switch v7, :sswitch_data_0

    .line 145
    :cond_0
    :goto_0
    :sswitch_0
    return-void

    .line 75
    :sswitch_1
    iget-object v7, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v7}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v7

    const-string v8, "nologin"

    invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_1

    .line 76
    iget-object v7, p0, Lcom/wmr/order/RefundActivity$1;->this$0:Lcom/wmr/order/RefundActivity;

    # getter for: Lcom/wmr/order/RefundActivity;->mcontext:Landroid/content/Context;
    invoke-static {v7}, Lcom/wmr/order/RefundActivity;->access$0(Lcom/wmr/order/RefundActivity;)Landroid/content/Context;

    move-result-object v7

    const-string v8, "\u63d0\u793a\u4fe1\u606f"

    const-string v9, "\u672a\u767b\u9646\uff0c\u767b\u5f55\u540e\u624d\u80fd\u64cd\u4f5c"

    invoke-static {v7, v8, v9}, Lmyclass/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 78
    :cond_1
    iget-object v7, p0, Lcom/wmr/order/RefundActivity$1;->this$0:Lcom/wmr/order/RefundActivity;

    # getter for: Lcom/wmr/order/RefundActivity;->mcontext:Landroid/content/Context;
    invoke-static {v7}, Lcom/wmr/order/RefundActivity;->access$0(Lcom/wmr/order/RefundActivity;)Landroid/content/Context;

    move-result-object v7

    const-string v8, "\u63d0\u793a\u4fe1\u606f"

    iget-object v9, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v9}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-static {v7, v8, v9}, Lmyclass/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 80
    const-string v7, "fanhuishuju"

    iget-object v8, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v8}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-static {v7, v8}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0

    .line 84
    :sswitch_2
    iget-object v7, p0, Lcom/wmr/order/RefundActivity$1;->this$0:Lcom/wmr/order/RefundActivity;

    # getter for: Lcom/wmr/order/RefundActivity;->mcontext:Landroid/content/Context;
    invoke-static {v7}, Lcom/wmr/order/RefundActivity;->access$0(Lcom/wmr/order/RefundActivity;)Landroid/content/Context;

    move-result-object v7

    const-string v8, "\u8fd4\u56de\u7ed3\u679c\u4e3a\u7a7a"

    invoke-static {v7, v8, v11}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v7

    invoke-virtual {v7}, Landroid/widget/Toast;->show()V

    goto :goto_0

    .line 88
    :sswitch_3
    const-string v7, "xxxxx"

    const-string v8, "\u52a0\u8f7d\u5b8c\u6bd5"

    invoke-static {v7, v8}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 97
    :sswitch_4
    new-instance v2, Landroid/content/Intent;

    invoke-direct {v2}, Landroid/content/Intent;-><init>()V

    .line 98
    .local v2, "intent":Landroid/content/Intent;
    iget-object v7, p0, Lcom/wmr/order/RefundActivity$1;->this$0:Lcom/wmr/order/RefundActivity;

    const/4 v8, 0x1

    invoke-virtual {v7, v8, v2}, Lcom/wmr/order/RefundActivity;->setResult(ILandroid/content/Intent;)V

    .line 99
    iget-object v7, p0, Lcom/wmr/order/RefundActivity$1;->this$0:Lcom/wmr/order/RefundActivity;

    invoke-virtual {v7}, Lcom/wmr/order/RefundActivity;->finish()V

    goto :goto_0

    .line 102
    .end local v2    # "intent":Landroid/content/Intent;
    :sswitch_5
    iget-object v7, p0, Lcom/wmr/order/RefundActivity$1;->this$0:Lcom/wmr/order/RefundActivity;

    iget-object v8, p0, Lcom/wmr/order/RefundActivity$1;->this$0:Lcom/wmr/order/RefundActivity;

    # getter for: Lcom/wmr/order/RefundActivity;->jarray:Lorg/json/JSONArray;
    invoke-static {v8}, Lcom/wmr/order/RefundActivity;->access$3(Lcom/wmr/order/RefundActivity;)Lorg/json/JSONArray;

    move-result-object v8

    invoke-virtual {v8}, Lorg/json/JSONArray;->length()I

    move-result v8

    new-array v8, v8, [Landroid/view/View;

    invoke-static {v7, v8}, Lcom/wmr/order/RefundActivity;->access$4(Lcom/wmr/order/RefundActivity;[Landroid/view/View;)V

    .line 103
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_1
    iget-object v7, p0, Lcom/wmr/order/RefundActivity$1;->this$0:Lcom/wmr/order/RefundActivity;

    # getter for: Lcom/wmr/order/RefundActivity;->jarray:Lorg/json/JSONArray;
    invoke-static {v7}, Lcom/wmr/order/RefundActivity;->access$3(Lcom/wmr/order/RefundActivity;)Lorg/json/JSONArray;

    move-result-object v7

    invoke-virtual {v7}, Lorg/json/JSONArray;->length()I

    move-result v7

    if-ge v1, v7, :cond_0

    .line 104
    iget-object v7, p0, Lcom/wmr/order/RefundActivity$1;->this$0:Lcom/wmr/order/RefundActivity;

    # getter for: Lcom/wmr/order/RefundActivity;->mcontext:Landroid/content/Context;
    invoke-static {v7}, Lcom/wmr/order/RefundActivity;->access$0(Lcom/wmr/order/RefundActivity;)Landroid/content/Context;

    move-result-object v7

    const v8, 0x7f03003f

    const/4 v9, 0x0

    invoke-static {v7, v8, v9}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v4

    .line 105
    .local v4, "tempview":Landroid/view/View;
    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v7

    invoke-virtual {v4, v7}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 106
    iget-object v7, p0, Lcom/wmr/order/RefundActivity$1;->this$0:Lcom/wmr/order/RefundActivity;

    # getter for: Lcom/wmr/order/RefundActivity;->reasonview:[Landroid/view/View;
    invoke-static {v7}, Lcom/wmr/order/RefundActivity;->access$1(Lcom/wmr/order/RefundActivity;)[Landroid/view/View;

    move-result-object v7

    aput-object v4, v7, v1

    .line 107
    const v7, 0x7f0701c3

    invoke-virtual {v4, v7}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/ImageView;

    .line 108
    .local v6, "unselet_img":Landroid/widget/ImageView;
    const v7, 0x7f0701c4

    invoke-virtual {v4, v7}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/ImageView;

    .line 109
    .local v3, "seleted_img":Landroid/widget/ImageView;
    if-nez v1, :cond_2

    .line 111
    invoke-virtual {v4, v13}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    .line 112
    .local v5, "textname":Landroid/widget/TextView;
    iget-object v7, p0, Lcom/wmr/order/RefundActivity$1;->this$0:Lcom/wmr/order/RefundActivity;

    invoke-virtual {v5}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v8

    invoke-interface {v8}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v8

    .line 113
    const-string v9, "%"

    const-string v10, ""

    invoke-virtual {v8, v9, v10}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    const-string v9, " "

    const-string v10, ""

    invoke-virtual {v8, v9, v10}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v8

    .line 112
    invoke-static {v7, v8}, Lcom/wmr/order/RefundActivity;->access$2(Lcom/wmr/order/RefundActivity;Ljava/lang/String;)V

    .line 115
    invoke-virtual {v6, v12}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 116
    invoke-virtual {v3, v11}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 121
    .end local v5    # "textname":Landroid/widget/TextView;
    :goto_2
    invoke-virtual {v4, v13}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    .line 123
    .restart local v5    # "textname":Landroid/widget/TextView;
    :try_start_0
    iget-object v7, p0, Lcom/wmr/order/RefundActivity$1;->this$0:Lcom/wmr/order/RefundActivity;

    # getter for: Lcom/wmr/order/RefundActivity;->jarray:Lorg/json/JSONArray;
    invoke-static {v7}, Lcom/wmr/order/RefundActivity;->access$3(Lcom/wmr/order/RefundActivity;)Lorg/json/JSONArray;

    move-result-object v7

    invoke-virtual {v7, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v7

    const-string v8, "name"

    invoke-virtual {v7, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v5, v7}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    .line 128
    :goto_3
    new-instance v7, Lcom/wmr/order/RefundActivity$viewClickListener;

    iget-object v8, p0, Lcom/wmr/order/RefundActivity$1;->this$0:Lcom/wmr/order/RefundActivity;

    invoke-direct {v7, v8, v1}, Lcom/wmr/order/RefundActivity$viewClickListener;-><init>(Lcom/wmr/order/RefundActivity;I)V

    invoke-virtual {v4, v7}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 129
    iget-object v7, p0, Lcom/wmr/order/RefundActivity$1;->this$0:Lcom/wmr/order/RefundActivity;

    # getter for: Lcom/wmr/order/RefundActivity;->showlistreason:Landroid/widget/LinearLayout;
    invoke-static {v7}, Lcom/wmr/order/RefundActivity;->access$5(Lcom/wmr/order/RefundActivity;)Landroid/widget/LinearLayout;

    move-result-object v7

    invoke-virtual {v7, v4}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 103
    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_1

    .line 118
    .end local v5    # "textname":Landroid/widget/TextView;
    :cond_2
    invoke-virtual {v6, v11}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 119
    invoke-virtual {v3, v12}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_2

    .line 124
    .restart local v5    # "textname":Landroid/widget/TextView;
    :catch_0
    move-exception v0

    .line 126
    .local v0, "e":Lorg/json/JSONException;
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_3

    .line 135
    .end local v0    # "e":Lorg/json/JSONException;
    .end local v1    # "i":I
    .end local v3    # "seleted_img":Landroid/widget/ImageView;
    .end local v4    # "tempview":Landroid/view/View;
    .end local v5    # "textname":Landroid/widget/TextView;
    .end local v6    # "unselet_img":Landroid/widget/ImageView;
    :sswitch_6
    iget-object v7, p0, Lcom/wmr/order/RefundActivity$1;->this$0:Lcom/wmr/order/RefundActivity;

    # getter for: Lcom/wmr/order/RefundActivity;->mcontext:Landroid/content/Context;
    invoke-static {v7}, Lcom/wmr/order/RefundActivity;->access$0(Lcom/wmr/order/RefundActivity;)Landroid/content/Context;

    move-result-object v7

    const-string v8, "\u5b9a\u4f4d\u4fe1\u606f"

    iget-object v9, p0, Lcom/wmr/order/RefundActivity$1;->this$0:Lcom/wmr/order/RefundActivity;

    # getter for: Lcom/wmr/order/RefundActivity;->m:Lmyapp/MyApp;
    invoke-static {v9}, Lcom/wmr/order/RefundActivity;->access$6(Lcom/wmr/order/RefundActivity;)Lmyapp/MyApp;

    move-result-object v9

    invoke-virtual {v9}, Lmyapp/MyApp;->getAppname()Ljava/lang/String;

    move-result-object v9

    invoke-static {v7, v8, v9}, Lmyclass/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_0

    .line 138
    :sswitch_7
    const-string v7, "\u6309\u94ae\u70b9\u51fb"

    iget-object v8, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v8}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-static {v7, v8}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_0

    .line 71
    nop

    :sswitch_data_0
    .sparse-switch
        0x0 -> :sswitch_0
        0x1 -> :sswitch_1
        0x2 -> :sswitch_2
        0x3 -> :sswitch_3
        0x4 -> :sswitch_0
        0x5 -> :sswitch_4
        0x6 -> :sswitch_5
        0xa -> :sswitch_0
        0x64 -> :sswitch_7
        0x6f -> :sswitch_6
    .end sparse-switch
.end method
